package com.shengyuan.manage_os.old.ying.erpm;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.shengyuan.manage_os.R;

public class BasePrinterActivity extends Activity implements OnClickListener {

	protected Button btn_back, btn_print;
	private Button btn_over_send;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	protected void onResume() {
		super.onResume();
		btn_back = (Button) findViewById(R.id.btn_back);
		btn_print = (Button) findViewById(R.id.btn_print);
		if (btn_back!=null) {
			btn_back.setOnClickListener(this);
		}
		if (btn_print!=null) {
			btn_print.setOnClickListener(this);
		}
		btn_over_send = (Button) findViewById(R.id.btn_over_send);
		if (btn_over_send!=null) {
			btn_over_send.setOnClickListener(this);
		}
		

	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_back:
			finish();
			break;
		case R.id.btn_print:
			PrintingContent();
			Save_Send_Server();
			break;
		case R.id.btn_over_send:
			Save_Send_Server();
			break;
		default:
			break;
		}
		
	}
	
	protected void PrintingContent() {
		
	}
	
	protected void Save_Send_Server() {
	}

}
